package api

import (
	request "gitee.com/changeden/volcengine-livesaas-request-go"
)

type CreateActivityRequest struct {
	Name        *string `json:"Name"`
	LiveTime    *int64  `json:"LiveTime"`
	ViewUrlPath *string `json:"ViewUrlPath"`
	CoverImage  *string `json:"CoverImage"`
	OldId       *int64  `json:"OldId"`
	CopyStream  *bool   `json:"CopyStream"`
}
type CreateActivityResponse struct {
	ActivityId int64 `json:"ActivityId"`
}

func (instance *Instance) CreateActivity(data *CreateActivityRequest) (*CreateActivityResponse, error) {
	d := request.Data{
		Action: "CreateActivityAPI",
	}
	bindBody(&d, *data)
	var r CreateActivityResponse
	err := instance.post(&d, &r)
	return &r, err
}
